package com.yuer.xml.dubbo.impl;

import com.yuer.dubbo.HelloWorld;
import org.apache.dubbo.config.annotation.Service;

import java.util.concurrent.TimeUnit;


@Service
public class HelloServerImpl implements HelloWorld {
    @Override
    public String sayHello(String content) {
        // 这里呢实际业务场景中是和数据库打交道做一些业务场景开发的
//        try {
//            TimeUnit.SECONDS.sleep(3);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        int ss = 100;
        return "hello1 "+content;
    }
}
